package com.example.springstudy.service;

import com.example.springstudy.dao.dto.OrderDTO;
import com.example.springstudy.dao.res.OrderRes;
import com.example.springstudy.entity.Order;

import java.util.List;

public interface OrderService {

    Order createOrder(OrderDTO order) throws Exception;

    OrderRes queryOrder(int orderId);

    List<OrderRes> queryOrderListByPage(int shopId, int employeeId, int page, int size);

    boolean updateOrder(OrderDTO order);

    boolean orderPay(String code, String orderNo, String totalFee) throws IllegalAccessException;
}
